package com.gome.ocean.dao.cango;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.gome.ocean.dao.model.cango.CangoTable;

/**
 * @author zhangguoqing 2017年2月15日 下午5:16:14
 * @since 5.0.0
 */
@Repository("cangoTableDAO")
public interface CangoTableDAO {

    public void insert(CangoTable table);

    public void update(CangoTable table);

    public void deleteById(@Param("id") Long id);

    public void deleteByInstancesName(@Param("instancesName") String instancesName);

    public CangoTable getBeanByMap(Map<String, Object> map);

    public List<CangoTable> getBeanListsByName(@Param("instancesName") String instancesName);

    public void deleteAll();
}
